<?php

class DBTest3Controller extends CustomController
{

    public function actionIndex()
    {
        while ($p1 = Pessoa::model()->find('nome=:nome', array(':nome'=>"Gustavo"))) {
            echo $p1->id . "\n";
            $p1->delete();
        }
    }

}
